package com.xc.c1

object ovd01 {

  def main(args: Array[String]): Unit = {
    val aa: AA = new BB
    val bb: BB = new BB
    println("aa:AA,name = " + aa.name)
    println("bb:BB,name = " + bb.name)
  }

  class AA {
    val name: String = "hxc"
  }

  class BB extends AA {
    override val name: String = "keke"
  }

}
